package edu.huangke;

import edu.huangke.dao.Impl.UserDaoImpl;
import edu.huangke.dao.UserDao;

public class JdkProxyTest {
    public static void main(String[] args) {
        MyProxy proxy = new MyProxy();
        UserDao dao = new UserDaoImpl();
        UserDao proxyInstance = (UserDao)proxy.createProxy(dao);

        proxyInstance.saveUser();
        proxyInstance.deleteUser();
    }
}
